#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;

int N;
int a[55] = {0};
int main()
{
    cin >> N;
    int temp = 0;
    for (int i = 0; i < N; i++)
    {
        cin >> temp;
        a[temp] += 1;
    }
    for (int i = 0; i < 55; i++)
    {
        if (a[i] != 0)
        {
            cout << i << ":" << a[i] << endl;
        }
    }
}